projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
abe9d29
)
(menu_position_func): Use x_display_pixel_height and
author
Chong Yidong
<cyd@stupidchicken.com>
Thu, 18 Sep 2008 18:13:09 +0000
(18:13 +0000)
committer
Chong Yidong
<cyd@stupidchicken.com>
Thu, 18 Sep 2008 18:13:09 +0000
(18:13 +0000)
x_display_pixel_width.
src/xmenu.c
patch
|
blob
|
history
diff --git
a/src/xmenu.c
b/src/xmenu.c
index 5cc924220076cb12f91db5f6ed702008590dbf18..04c659a1ce05c5367394fc08bede87e4d2eadeb3 100644
(file)
--- a/
src/xmenu.c
+++ b/
src/xmenu.c
@@
-1696,8
+1696,9
@@
menu_position_func (menu, x, y, push_in, user_data)
{
struct next_popup_x_y* data = (struct next_popup_x_y*)user_data;
GtkRequisition req;
- int disp_width = FRAME_X_DISPLAY_INFO (data->f)->width;
- int disp_height = FRAME_X_DISPLAY_INFO (data->f)->height;
+ struct x_display_info *dpyinfo = FRAME_X_DISPLAY_INFO (data->f);
+ int disp_width = x_display_pixel_width (dpyinfo);
+ int disp_height = x_display_pixel_height (dpyinfo);
*x = data->x;
*y = data->y;